package com.caszx.chargingpile.holder.station;

import android.view.View;
import android.widget.TextView;

import com.app.base.adapter.holder.BaseHolder;
import com.caszx.chargingpile.R;
import com.caszx.chargingpile.entity.EntityTabComment;

/**
 * Created by Lihao on 2016/1/29.
 */
public class TabCommentHolder extends BaseHolder<EntityTabComment> {

    private TextView txt_content;
    private TextView txt_bottom;



    public TabCommentHolder(View view) {
        super(view);
    }

    @Override
    protected void initView() {
        txt_content = (TextView) mRootView.findViewById(R.id.txt_content);
        txt_bottom = (TextView) mRootView.findViewById(R.id.txt_bottom);
    }

    @Override
    protected void refreshView() {
        txt_content.setText(mItem.content);
        txt_bottom.setText(mItem.degree+" "+mItem.date);
    }
}
